package reflect;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(5,"one");
        doSome(5,"one","two","three");
        doSome(5,"one","two","three","three");
        doSome(5,"one","two","three","three","four");
        doSome(5,"one","two","three","three","four","five");
        doSome(5,"one","two","three","three","four","five","six");
    }
    public static void doSome(int a ,String... args){
        System.out.println(args.length);
    }
}
